<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的薪资</title>
</head>
<body>
	<script type="text/javascript">
		$(function(){
			var eid="";
			eid=$(".He_text_t").attr("id");
			$('#my_set').datagrid({    
		 		url:'sele_yuangongtaozhang', //数据源地
		 		queryParams: {  		
		 			empid:eid  		
				},
			    columns:[[    
			    	{field:'setid',width:100,title:'账套编号',align:'center'},    
			        {field:'setname',width:100,title:'账套名称',align:'center'},   
			        {field:'zhijiname',width:100,title:'职级',align:'center'},
			        {field:'empname',width:100,title:'创建人',align:'center'},
			    ]]
			}); 
			$('#my_paymen').datagrid({    
		 		url:'sele_mysal', //数据源地
			    columns:[[    
			    	
			    	{field:'empname',width:100,title:'员工名称',align:'center'},    
			        {field:'slszt',width:100,title:'套账主题',align:'center'},   
			        {field:'SLSTIME',width:100,title:'发放月份',align:'center',
			        	formatter : function(value){
			        		var d = new Date(value);
			        		var times=d.getFullYear() + '-' + (d.getMonth() + 1) ;
			        		return times;
			        	}	
			        },
			        {field:'WAGSQJ',width:100,title:'请假',align:'center',
			        	formatter : function(value){
			        		return "-"+value;
			        	}		
			        },
			        {field:'WAGSCD',width:100,title:'迟到（50/次）',align:'center',
			        	formatter : function(value){
			        		return "-"+value;
			        	}	
			        },
			        {field:'WAGSZT',width:100,title:'早退（50/次）',align:'center',
			        	formatter : function(value){
			        		return "-"+value;
			        	}
			        },
			        {field:'WAGSSB',width:100,title:'社保',align:'center',
			        	formatter : function(value){
			        		return "-"+value;
			        	}
			        },
			        {field:'WAGSYF',width:100,title:'应发工资',align:'center'},
			        {field:'WAGSSF',width:100,title:'实发工资',align:'center'},
			        {field:'WAGSSTAT',width:100,title:'状态',align:'center',
			        	formatter : function(value){
			        		return "已发放";
			        	}	
			        }
			    ]],
			    pagination:true,
			    pageNumber:1,
			    pageSize:5,
			    pageList:[5,10,15] 
			
			}); 
		})
	</script>
	<div class="table_1" style="margin-top:8px;margin-left:5px;margin-right:5px;">
	<table id="my_set" class="easyui-datagrid" style="width:100%;height:75px" data-options="fitColumns:true,singleSelect: true">
	</table>
	</div>
	<div class="table_1"style="margin-top:15px;margin-left:5px;margin-right:5px;">
	<table id="my_paymen" class="easyui-datagrid" style="width:100%;height:350px" data-options="fitColumns:true,singleSelect: true">
	</table>
	</div>
</body>
</html>